//
//  NSObject+Category.h
//  OnionHome
//
//  Created by fengjie on 2019/9/18.
//  Copyright © 2019 FengJie. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSObject (Category)

/**
 倒计时
 
 @param timeout     总时间
 @param target      点击的控件
 @param waitBlock   倒计时过程中可以再里面做一些操作
 @param finishBlock 完成时执行的block
 */
- (dispatch_source_t)startTime:(NSInteger)timeout Target:(UIView *)target waitBlock:(void(^)(NSInteger remainTime))waitBlock finishBlock:(void(^)(void))finishBlock;

@end

NS_ASSUME_NONNULL_END
